﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MasterDataChange.aspx.cs" Inherits="H2.NET.Web.Pages.SMD.MasterDataChange" %>
<%@ Register src="../../Controls/Attachment.ascx" tagname="Attachment" tagprefix="uc1" %>\
<%@ Register src="uc_search_store.ascx" tagname="uc_search_store" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE9" />
<head id="Head1" runat="server">
    <title>Store Data Change</title>
    <link href="<%=Page.ResolveUrl("~/Resource/Css/Style.css")%>" type="text/css" rel="stylesheet" />
    <link href="<%=Page.ResolveUrl("~/Resource/jBox/Blue/jbox.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/Css/validform.css")%>" rel="stylesheet" type="text/css" />
    <link href="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.css")%>" rel="stylesheet" type="text/css" />
    <script src="<%=Page.ResolveUrl("~/Resource/dwz/js/jquery-1.7.2.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-2.3.min.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/jBox/jquery.jBox-zh-CN.js")%>" type="text/javascript"></script>
    <script src="<%=Page.ResolveUrl("~/Resource/qtip/jquery.qtip.min.js")%>" type="text/javascript"></script>

    <script type="text/javascript">
        $(function () {
            $("#data_change_type").change(function () {
                $(".formTable tbody").hide();
                $(".formTable tbody#" + $(this).val()).show();
            });
        });

        // 这个脚本是 ie6和ie7 通用的脚本
        function custom_close() {
            if(confirm("您确定要关闭本页吗？")) {
                window.opener = null;
                window.open('', '_self');
                window.close();
            }
            else { }
        }

        function openDialog() {
            $.jBox("id:store_list", {
                title: "双击选择门店",
                width: 650,
                height: 500,
                buttons: {}
            });
        }
    </script>
</head>
<body>
    <div class="flowpage">
    <form id="form" runat="server">
        <!-- 标题 st -->
        <div class="ffh">
            <table width="100%">
                <tr>
                    <td class="logo">
                        <img alt="" src="../../Resource/Images/Logo_AkzoNobel.gif" />
                    </td>
                    <td class="title">
                        <b>Store Data Change</b>
                    </td>
                    <td class="info" align="left">
                        <div>
                            <lable>No：</lable><asp:Literal ID="l_ApplicationNo" runat="server"></asp:Literal>
                        </div>
                        <div>
                            <lable>Date：</lable><%=DateTime.Now.ToString("yyyy-MM-dd")%>
                        </div>
                        <div>
                            <lable>Applicator：</lable><%=UserAPI.UserFullName%>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        <!-- 标题 ed -->

        <!-- 表单内容 st -->
        <div class="flowContent">
            <ul class="tabs" id="tabs" runat="server">
                <li><a href="ChangeStore.aspx?taskid=<%=TaskAPI.TaskID%>" class='selected'>门店主数据变更</a></li>
                <li><a href="ChangeDevice.aspx?taskid=<%=TaskAPI.TaskID%>">设备主数据变更</a></li>
                <li><a href="ChangeContract.aspx?taskid=<%=TaskAPI.TaskID%>">合同主数据变更</a></li>
                <li><a href="ChangeStore.aspx?taskid=<%=TaskAPI.TaskID%>">三方转移</a></li>
                <li><a href="ChangeStore.aspx?taskid=<%=TaskAPI.TaskID%>">设备报废、库存</a></li>
                <li><a href="ChangeStore.aspx?taskid=<%=TaskAPI.TaskID%>">经销商变更</a></li>
                <li><a href="ChangeStore.aspx?taskid=<%=TaskAPI.TaskID%>">门店关闭、降级</a></li>
            </ul>
        </div>

        <table class="formTable">
            <!-- 门店信息 st -->
            <tbody id="tbody_store" runat="server">
                    <tr>
                        <td class="title" colspan="6">门店信息</td>
                    </tr>
                    <tr>
                        <th>门店类型：</th>
                        <td><asp:DropDownList ID="store_type" runat="server" datatype="*" nullmsg="请选择门店类型"></asp:DropDownList></td>
                        <th>新装修门店类型：</th>
                        <td><asp:DropDownList ID="ddl_NewFitment" runat="server" datatype="*" nullmsg="请选择新装修门店类型"></asp:DropDownList></td>
                        <th>机器申请类型：</th>
                        <td><asp:DropDownList ID="ddl_ApplicationType" runat="server" onchange="$(this).val() == '' ? $('#tbody_equipment').hide() : $('#tbody_equipment').show()"></asp:DropDownList></td>
                    </tr>
                    <tr>
                        <th>门店名称：</th>
                        <td><asp:TextBox ID="tb_store_name" runat="server" datatype="*" nullmsg="请填写门店名称"></asp:TextBox></td>
                        <th>联系人：</th>
                        <td><asp:TextBox ID="tb_ContractPerson" runat="server"></asp:TextBox></td>
                        <th>传真：</th>
                        <td><asp:TextBox ID="tb_Fax" runat="server"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th>电话：</th>
                        <td><asp:TextBox ID="tb_Telephone" runat="server"></asp:TextBox></td>
                        <th>所占面积：</th>
                        <td><asp:TextBox ID="tb_size" runat="server"></asp:TextBox>M<sup>2</sup></td>
                        <th>开店日期：</th>
                        <td colspan="3"><asp:TextBox ID="tb_OpenDate" runat="server" ReadOnly="true" CssClass="Wdate" onfocus="WdatePicker()"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th>门店区域：</th>
                        <td><asp:DropDownList ID="ddl_region" runat="server"></asp:DropDownList></td>
                        <th>门店省份：</th>
                        <td>
                            <select id="ddl_province" runat="server">
                                <option value="">==请选择==</option>
                                <option value="上海市">上海市</option>
                                <option value="浙江省">浙江省</option>
                                <option value="安徽省">安徽省</option>
                                <option value="江苏省">江苏省</option>
                            </select>
                        </td>
                        <th>门店城市：</th>
                        <td>
                            <select id="ddl_cityName" runat="server">
                                <option value="">==请选择==</option>
                                <option value="上海">上海</option>
                            </select>
                        </td>
                    </tr>
                    <tr>
                        <th>门店地址：</th>
                        <td colspan="5"><asp:TextBox ID="tb_address" runat="server" Width="500"></asp:TextBox></td>
                    </tr>
                </tbody>
            <!-- 门店信息 ed -->

            <!-- 设备信息 st -->
            <tbody id="equipment">
                <tr>
                    <td class="title" colspan="6">
                        设备信息
                    </td>
                </tr>
                <tr>
                    <th>
                        调色机机器初购年份：
                    </th>
                    <td>

                    </td>
                    <th>
                        调色机安装时间：
                    </th>
                    <td colspan="3">

                    </td>
                </tr>
                <tr>
                    <th>
                        调色机型号：
                    </th>
                    <td>

                    </td>
                    <th>
                        调色机固定资产号：
                    </th>
                    <td>

                    </td>
                    <th>
                        调色机序列号：
                    </th>
                    <td>

                    </td>
                </tr>
                <tr>
                    <th>震荡机机器初购年份：</th>
                    <td><input type="text" /></td>
                    <th>震荡机安装时间：</th>
                    <td colspan="3"><input type="text" /></td>
                </tr>
                <tr>
                    <th>震荡机型号：</th>
                    <td><input type="text" /></td>
                    <th>震荡机固定资产号：</th>
                    <td><input type="text" /></td>
                    <th>震荡机序列号：</th>
                    <td></td>
                </tr>
                <tr>
                    <th>电脑初购年份：</th>
                    <td><input type="text" /></td>
                    <th>电脑安装时间：</th>
                    <td colspan="3"><input type="text" /></td>
                </tr>
                <tr>
                    <th>电脑型号：</th>
                    <td><input type="text" /></td>
                    <th>电脑固定资产号：</th>
                    <td><input type="text" /></td>
                    <th>电脑序列号：</th>
                    <td>
                        <select>
                            <option>==请选择==</option>
                        </select>
                    </td>
                </tr>
            </tbody>
            <!-- 设备信息 ed -->
            
            <!-- 合同信息 st -->
            <tbody id="contract">
                <tr>
                    <td class="title" colspan="6">
                        合同信息
                    </td>
                </tr>
                <tr>
                    <th>
                        门店合同编号：
                    </th>
                    <td>
                        <select id="Select1">
                            <option>==请选择==</option>
                            <option value="1">新机投放</option>
                            <option value="2">旧机转入</option>
                            <option value="3">竞争对手设备转入</option>
                            <option value="4">不涉及设备</option>
                        </select>
                    </td>
                    <th>
                        门店保证金余额：
                    </th>
                    <td>
                        <select>
                            <option>==请选择==</option>
                            <option>仓库1</option>
                            <option>仓库2</option>
                            <option>当前门店</option>
                        </select>
                    </td>
                    <th>
                        店面合同类型：
                    </th>
                    <td>
                        <select>
                            <option>==请选择==</option>
                            <option>STD</option>
                            <option>DIR</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>合同起始：</th>
                    <td><input type="text" /></td>
                    <th>合同到期：</th>
                    <td><input type="text" /></td>
                    <th>店面奖励合同：</th>
                    <td>
                        <select>
                            <option>==请选择==</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <th>奖励合同起始：</th>
                    <td><input type="text" /></td>
                    <th>奖励合同到期：</th>
                    <td><input type="text" /></td>
                    <th>三方转移合同：</th>
                    <td><input type="text" /></td>
                </tr>
                <tr>
                    <th>转出门店编号：</th>
                    <td><input type="text" /></td>
                    <th>转出门店名称：</th>
                    <td><input type="text" /></td>
                    <th>三方转移合同签订日期：</th>
                    <td><input type="text" /></td>
                </tr>
                <tr>
                    <th>3年以上店面续签协议：</th>
                    <td><input type="text" /></td>
                    <th>续签合同起始：</th>
                    <td><input type="text" /></td>
                    <th>续签合同到期：</th>
                    <td><input type="text" /></td>
                </tr>
                <tr>
                    <th>设备合同编号：</th>
                    <td><input type="text" /></td>
                    <th>调色机保证金余额：</th>
                    <td><input type="text" /></td>
                    <th>设备合同类型：</th>
                    <td><input type="text" /></td>
                </tr>
                <tr>
                    <th>设备合同起始：</th>
                    <td><input type="text" /></td>
                    <th>设备合同到期：</th>
                    <td colspan="3"><input type="text" /></td>
                </tr>
            </tbody>
            <!-- 设备信息 ed -->


            <tbody>
                <tr>
                    <th></th>
                    <td colspan="5">
                        
                        <uc1:Attachment ID="Attachment1" runat="server" />
                        
                    </td>
                </tr>
            </tbody>
        </table>
        <div style="margin: 5px; padding-bottom: 10px; text-align: center;">
            <button class="u-btn" type="button">提交(Submit)</button>
            <button class="u-btn u-btn-c4" type="button" onclick="custom_close()">关闭(Close)</button>
        </div>

        <div id="store_list" style="display:none;"><uc1:uc_search_store ID="uc_search_store1" runat="server" /></div>
    
    </form>
    </div>
</body>
</html>
